﻿<?php
// 本类由系统自动生成，仅供测试用途
class IndexAction extends Action{
    public function index(){
      $area=D(Area);
      $result=$area->findAll();
      $this->assign('result',$result);
      $this->display('index');
     } 

   public function action(){      
   switch (ACTION_NAME)
   {
      Case "delete":  
         $this->display('delete');
         break;
      Case "edit":       
         $this->display('edit');
         break;  
   }
  }
  
}
?>